import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "./styles/index.scss";
import mockAjax from "@/mock/index";

Vue.config.productionTip = false;
Vue.use(ElementUI);

if (process.env.NODE_ENV !== "production") {
  mockAjax();
  console.log("mockjs setup!");
}

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
